package com.vcredit.creditcat.activeMQ;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Created by liaoshengjun on 2017/10/27.
 */
@Component
public class QeueConsumerDoFactory {
	@Autowired
	private Map<String,IQueueConsumerDo> queueConsumerDoMap;

	public IQueueConsumerDo getQueueDealInterface(String className) {
		return queueConsumerDoMap.get(className);
	}

	public boolean exitClass(String className) {
		if (!queueConsumerDoMap.containsKey(className)){
			return false;
		}
		return true;
	}
}
